package com.gu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * The table 公寓表
 */
public class ApartmentDO{

    /**
     * id id.
     */
    private Integer id;
    /**
     * roomNumber 房间号（01、02、03...）.
     */
    private String roomNumber;
    /**
     * userId 用户id.
     */
    private Integer userId;
    /**
     * unitNumber 单元号.
     */
    private Integer unitNumber;
    /**
     * floorNumber 楼层.
     */
    private Integer floorNumber;
    /**
     * buildingNumber 楼号.
     */
    private Integer buildingNumber;
    /**
     * createTime 创建时间.
     */

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    /**
     * updateTime 最后一次修改时间.
     */

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    private UserDO userDO;

    /**
     * Set id id.
     */
    public void setId(Integer id){
        this.id = id;
    }

    /**
     * Get id id.
     *
     * @return the string
     */
    public Integer getId(){
        return id;
    }

    /**
     * Set roomNumber 房间号（01、02、03...）.
     */
    public void setRoomNumber(String roomNumber){
        this.roomNumber = roomNumber;
    }

    /**
     * Get roomNumber 房间号（01、02、03...）.
     *
     * @return the string
     */
    public String getRoomNumber(){
        return roomNumber;
    }

    /**
     * Set userId 用户id.
     */
    public void setUserId(Integer userId){
        this.userId = userId;
    }

    /**
     * Get userId 用户id.
     *
     * @return the string
     */
    public Integer getUserId(){
        return userId;
    }

    /**
     * Set unitNumber 单元号.
     */
    public void setUnitNumber(Integer unitNumber){
        this.unitNumber = unitNumber;
    }

    /**
     * Get unitNumber 单元号.
     *
     * @return the string
     */
    public Integer getUnitNumber(){
        return unitNumber;
    }

    /**
     * Set floorNumber 楼层.
     */
    public void setFloorNumber(Integer floorNumber){
        this.floorNumber = floorNumber;
    }

    /**
     * Get floorNumber 楼层.
     *
     * @return the string
     */
    public Integer getFloorNumber(){
        return floorNumber;
    }

    /**
     * Set buildingNumber 楼号.
     */
    public void setBuildingNumber(Integer buildingNumber){
        this.buildingNumber = buildingNumber;
    }

    /**
     * Get buildingNumber 楼号.
     *
     * @return the string
     */
    public Integer getBuildingNumber(){
        return buildingNumber;
    }

    /**
     * Set createTime 创建时间.
     */
    public void setCreateTime(Date createTime){
        this.createTime = createTime;
    }

    /**
     * Get createTime 创建时间.
     *
     * @return the string
     */
    public Date getCreateTime(){
        return createTime;
    }

    /**
     * Set updateTime 最后一次修改时间.
     */
    public void setUpdateTime(Date updateTime){
        this.updateTime = updateTime;
    }

    /**
     * Get updateTime 最后一次修改时间.
     *
     * @return the string
     */
    public Date getUpdateTime(){
        return updateTime;
    }

    public UserDO getUserDO() {
        return userDO;
    }

    public void setUserDO(UserDO userDO) {
        this.userDO = userDO;
    }

    @Override
    public String toString() {
        return "ApartmentDO{" +
                "id=" + id +
                ", roomNumber='" + roomNumber + '\'' +
                ", userId=" + userId +
                ", unitNumber=" + unitNumber +
                ", floorNumber=" + floorNumber +
                ", buildingNumber=" + buildingNumber +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", userDO=" + userDO +
                '}';
    }
}
